package com.weixstudio.designmode.facade.demo_1;

/**
 * @ClassName CiphrMachine
 * @Description 加密数据示例
 * @Author liangw
 * @Date 2022/4/23 16:39
 * @Version 1.0
 **/
public class CiphrMachine {

    public String encrypt(String plainText){
        System.out.println("数据加密，将明文转换问密文！");
        String es = "";

        for (int i=0 ;i < plainText.length(); i++){
            String c = String.valueOf(plainText.charAt(i)%7);
            es += c;
        }
        System.out.println(es);
        return es;
    }
}
